////////////////////////////////////////////////////////////////////////////////
////	ELECTORAL TURNOVERS
////////////////////////////////////////////////////////////////////////////////

set graphics off
set varabbrev off

// Defining project path
*global project_path = "/Users/Raphael/Dropbox/Do elections matter/replication_package/"
global project_path = "/Users/vrollet/Dropbox/Do elections matter/replication_package/"
*global project_path = "C:\Users\bmarx\Dropbox\Do elections matter\replication_package\"

// Defining ado path
global ado_path = "$project_path/do/ado"
sysdir set PERSONAL "$ado_path"

run "$project_path/do/1_1_1_election_dates_vdem.do"
run "$project_path/do/1_1_2_election_dates_parlgov.do"
run "$project_path/do/1_1_3_election_dates_mp.do"
run "$project_path/do/1_1_election_dates.do"
run "$project_path/do/1_2_1_presidential_elections_vdem.do"
run "$project_path/do/1_2_presidential_elections.do"
run "$project_path/do/1_3_1_parliamentary_elections_vdem.do"
run "$project_path/do/1_3_2_parliamentary_elections_parlgov.do"
run "$project_path/do/1_3_3_parliamentary_elections_mp.do"
run "$project_path/do/1_3_4_parliamentary_elections_dpi.do"
run "$project_path/do/1_3_5_parliamentary_elections_global.do"
run "$project_path/do/1_3_parliamentary_elections.do"
run "$project_path/do/1_4_regimes.do"
run "$project_path/do/1_5_1_leaders_years.do"
run "$project_path/do/1_5_2_elected_leaders.do"
*python script "$project_path/do/1_5_3_leaders_before_after_elections.py"
run "$project_path/do/1_6_1_outcomes_pwt.do"
run "$project_path/do/1_6_2_outcomes_imf.do"
run "$project_path/do/1_6_3_outcomes_ilo.do"
run "$project_path/do/1_6_4_outcomes_wb.do"
run "$project_path/do/1_6_5_outcomes_undp.do"
run "$project_path/do/1_6_6_outcomes_vdem.do"
run "$project_path/do/1_6_outcomes.do"

run "$project_path/do/2_1_1_turnovers_presidential.do"
run "$project_path/do/2_1_2_term_limits_presidential.do"
run "$project_path/do/2_2_1_turnovers_parliamentary_electoral.do"
run "$project_path/do/2_2_2_turnovers_parliamentary_executive.do"
run "$project_path/do/2_3_build_regdata.do"

set graphics off

run "$project_path/do/3_1_1_figure_1.do"
run "$project_path/do/3_1_2_figure_2.do"
run "$project_path/do/3_1_3_figure_3.do"
run "$project_path/do/3_1_4_figure_4.do"
run "$project_path/do/3_1_5_figure_5.do"
run "$project_path/do/3_1_6_figure_6.do"
run "$project_path/do/3_1_7_figure_7.do"
run "$project_path/do/3_2_1_table_1.do"
run "$project_path/do/3_2_2_table_2.do"
run "$project_path/do/3_2_3_table_3.do"
run "$project_path/do/3_3_B1_appendix_figure_B1.do"
run "$project_path/do/3_3_B2_appendix_figure_B2.do"
run "$project_path/do/3_3_B3_appendix_figure_B3.do"
run "$project_path/do/3_3_C1_appendix_figure_C1.do"
run "$project_path/do/3_3_C2_appendix_figure_C2.do"
run "$project_path/do/3_3_C3_appendix_figure_C3.do"
run "$project_path/do/3_3_C4_appendix_figure_C4.do"
run "$project_path/do/3_3_C5_appendix_figure_C5.do"
run "$project_path/do/3_3_E1_appendix_figure_E1.do"
run "$project_path/do/3_3_E2_appendix_figure_E2.do"
run "$project_path/do/3_3_E3_appendix_figure_E3.do"
run "$project_path/do/3_3_E4_appendix_figure_E4.do"
run "$project_path/do/3_3_E5_appendix_figure_E5.do"
run "$project_path/do/3_3_E6_appendix_figure_E6.do"
run "$project_path/do/3_3_E7_appendix_figure_E7.do"
run "$project_path/do/3_3_E8_appendix_figure_E8.do"
run "$project_path/do/3_3_E9_appendix_figure_E9.do"
run "$project_path/do/3_3_E10_appendix_figure_E10.do"
run "$project_path/do/3_3_F1_appendix_figure_F1.do"
run "$project_path/do/3_3_G_appendix_figure_G.do"
run "$project_path/do/3_4_B1_appendix_table_B1.do"
run "$project_path/do/3_4_B3_appendix_table_B3.do"
run "$project_path/do/3_4_C1_appendix_table_C1.do"
run "$project_path/do/3_4_C2_appendix_table_C2.do"
run "$project_path/do/3_4_C3_appendix_table_C3.do"
run "$project_path/do/3_4_C4_appendix_table_C4.do"
run "$project_path/do/3_4_C5_appendix_table_C5.do"
run "$project_path/do/3_4_C6_appendix_table_C6.do"
run "$project_path/do/3_4_C7_appendix_table_C7.do"
run "$project_path/do/3_4_C8_appendix_table_C8.do"
run "$project_path/do/3_4_D1_appendix_table_D1.do"
run "$project_path/do/3_4_D2_appendix_table_D2.do"
run "$project_path/do/3_4_D3_appendix_table_D3.do"
run "$project_path/do/3_4_D4_appendix_table_D4.do"
run "$project_path/do/3_4_D5_appendix_table_D5.do"
run "$project_path/do/3_4_D6_appendix_table_D6.do"
run "$project_path/do/3_4_D7_appendix_table_D7.do"
run "$project_path/do/3_4_D8_appendix_table_D8.do"
run "$project_path/do/3_4_D9_appendix_table_D9.do"
run "$project_path/do/3_4_D10_appendix_table_D10.do"
run "$project_path/do/3_4_D11_appendix_table_D11.do"
run "$project_path/do/3_4_D12_appendix_table_D12.do"
run "$project_path/do/3_4_D13_appendix_table_D13.do"
run "$project_path/do/3_4_D14_appendix_table_D14.do"
run "$project_path/do/3_4_D15_appendix_table_D15.do"
run "$project_path/do/3_4_D16_appendix_table_D16.do"
run "$project_path/do/3_4_D17_appendix_table_D17.do"
run "$project_path/do/3_4_E1_appendix_table_E1.do"
run "$project_path/do/3_4_E2_appendix_table_E2.do"
run "$project_path/do/3_4_E3_appendix_table_E3.do"
run "$project_path/do/3_4_E4_appendix_table_E4.do"
run "$project_path/do/3_4_E5_appendix_table_E5.do"
run "$project_path/do/3_4_E6_appendix_table_E6.do"
run "$project_path/do/3_4_E7_appendix_table_E7.do"
run "$project_path/do/3_4_E8_appendix_table_E8.do"
run "$project_path/do/3_4_E9_appendix_table_E9.do"
run "$project_path/do/3_4_E10_appendix_table_E10.do"
run "$project_path/do/3_4_E11_appendix_table_E11.do"

set graphics on
